<template>
  <div>
    <nav-bar class="home-nav">
      <div slot="left" class="title">微信</div>
      <div slot="right" class="search"><img src="../../assets/img/winxin/search.png" alt=""></div>
      <div slot="right-1" class="add"><img src="../../assets/img/winxin/add.png" alt=""></div>
    </nav-bar>
    <!-- 电脑登陆 -->
    <div class="online">
      <img src="../../assets/img/winxin/computer.png" alt="">
      <div class="computer-online">Windows微信已登陆</div>
    </div>
    <!-- 聊天列表 -->
    <div class="chat" @click="handleClick">
      <img src="../../assets/img/winxin/5.jpg" alt="">
      <div class="chat-title-1">
        <div class="chat-title-1-1">丝路视觉数字营销</div>
        <div class="chat-title-2">欢迎加入丝路视觉数字营销！</div>
      </div>
    </div>
    <div class="chat-2">
      <img src="../../assets/img/winxin/1.jpg" alt="" >
      <div class="chat-title-2">
        <div class="chat-title-2-1">张三</div>
        <p class="chat-title-2">哈哈</p>
      </div>
    </div>
  </div>
</template>

<script>
  import NavBar from "../../components/common/navbar/NavBar";
  export default {
    name: "Wx",
    components: {
      NavBar
    },
    methods: {
      handleClick() {
        this.$router.push({path: "helloWorld"})
      }
    }
  }
</script>

<style scoped>
 .home-nav {
   background-color: #f6f6f6;
 }
 .title {
   font-size: 16px;
 }
 .add {
   line-height: 58px;
 }
 .add img {
   width: 24px;
   height: 24px;
  }
 .search {
   line-height: 58px;
   margin-right: -38px;
  }
 .search img {
   width: 24px;
   height: 24px;
 }
 .online {
   display: flex;
   height: 40px;
   border-bottom: 1px solid #dbdbdb;
   border-top:0;
   border-left:0;
   border-right:0;
 }
  .online img {
    width: 20px;
    height: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    color: #747474;
  }
  .computer-online {
    flex: 1;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 40px;
    color: #747474;

  }
  .chat {
    display: flex;
    height: 63px;
    border-bottom: 1px solid #dbdbdb;
    border-top:0;
    border-left:0;
    border-right:0;
  }
  .chat img {
    width: 60px;
    height: 60px;
    margin-top: 2px;
    margin-left: 2px;
  }
  .chat-title-1 {
    flex: 1;
    margin-top: 6px;
    margin-left: 6px;
  }
  .chat-title-2-1 {
    margin-top: 8px;
  }
  .chat-title-1-2 {
    margin-top: 5px;
  }
  .chat-title-2 {
    font-size: 12px;
    color: #747474;
    margin-top: 3px;
  }
 .chat-title-2 {
   flex: 1;
   margin-top: 6px;
   margin-left: 8px;
 }
  .chat-2 {
    display: flex;
    height: 63px;
    border-bottom: 1px solid #dbdbdb;
  }
  .chat-2 img {
    width: 50px;
    height: 50px;
    margin-left: 7px;
    margin-top: 7px;
  }
</style>
